<div class="main clearfix">
    <div class="box clearfix bottom30">
        <div class="title-blue"><h3><strong>Cấu hình Syntax</strong></h3></div>
        <ul class="form4"></ul>
    </div>
    
    <div class="box">
        <div class="fillter clearfix">
            <div class="fl">Tìm thấy <strong class="clred"><?php echo $totalSyntax;?></strong> kết quả trong <strong class="clred"><?php echo $numberPage;?></strong> trang</div>
            <?php                
                $url = new Url();            
                $current_url = Common::getCurrentUrl();
                $path = strpos($current_url,'?') !==false ? $current_url.'&' : $current_url.'?';
                $path = str_replace("?page=".$currentPage."&","?",$path);
                $path = str_replace("&page=".$currentPage."&","&",$path);
            ?>            
            <div class="fr">                
                <ul class="paging">
                    <?php echo Paging::show_paging_cp($numberPage, $currentPage, $path);?>
                </ul>
            </div>
        </div>
        <div class="table clearfix">
            <table width="100%" cellspacing="0" cellpadding="0" border="0">
                <tbody>
                    <tr class="bg-grey">
                        <td width="15%"><strong>Title</strong></td>
                        <td width="10%"><strong>Mã cú pháp</strong></td>
                        <td width="15%"><strong>Cú pháp</strong></td>
                        <td width="10%"><strong>Đầu số</strong></td>                        
                        <td width="15%"><strong>Ngày cập nhật</strong></td>                        
                        <td width="10%"><strong>Người cập nhật</strong></td>                        
                        <td width="15%"><strong>Hành động</strong><br>&nbsp;</td>
                    </tr>
                    
                    <?php foreach($syntaxs as $row){ ?>
                    <tr>                        
                        <td><?php echo $row["title"];?></td>
                        <td><?php echo $row["type"];?></td>
                        <td><?php echo $row["syntax"];?></td>
                        <td><?php echo $row["serviceNumber"];?></td>
                        <td><?php echo date("H:i:s", $row["update_date"]) . "<br>" . date("d-m-Y", $row["update_date"]);?></td>
                        <td><?php echo $row["updater"];?></td>
                        
                        <td><a href="<?php echo Url::createUrl("syntax/edit", array("id"=>$row["id"]));?>"> [Sửa] </a></td>
                    </tr>
                    <?php }?>

                </tbody>
            </table>
        </div>
        <div class="fillter clearfix">
            <div class="fr">
                <ul class="paging">
                    <?php echo Paging::show_paging_cp($numberPage, $currentPage, $path);?>
                </ul>
            </div>
        </div>

    </div>
</div>